from GLOBALPATH import Global
import gensim


if __name__ == '__main__':
    wv_from_text = gensim.models.KeyedVectors.load(Global.word2vec_bin_path, mmap='r')
    print(wv_from_text.__dict__.keys())
    print(wv_from_text.vector_size)
    print(wv_from_text.next_index)
    # print(wv_from_text.vectors[wv_from_text.key_to_index['b站']])
    print(wv_from_text['b站'])
